package com.hl.service;

import com.hl.mapper.ShaiXuanMapper;
import com.hl.pojo.Consultants;
import com.hl.pojo.Users;
import com.hl.util.GeneralResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShaiXuanServiceImpl implements ShaiXuanService{
    @Autowired
    private ShaiXuanMapper shaiXuanMapper;
    @Override
    public GeneralResult shaixuan(Consultants consultants) {
        List<Consultants> consultants1 = shaiXuanMapper.shaixuan(consultants);
        if (consultants1.isEmpty()) {
            return GeneralResult.message(204,"没有查找到",null);
        }else {
            return GeneralResult.message(200,"筛选成功",consultants1);
        }
    }
}
